package com.recharge.service;

import com.recharge.common.result.ResultDO;
import com.recharge.core.entity.BlacklistEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.recharge.domain.query.BlacklistQueryDO;
import com.recharge.domain.vo.BlacklistDO;

/**
 * <p>
 * 黑名单 服务类
 * </p>
 *
 * @author Reagan
 * @since 2020-09-21
 */
public interface BlacklistService extends IService<BlacklistEntity> {

    /**
     * 添加黑名单
     * @param domain
     * @return ResultDO
     */
    public ResultDO add(BlacklistDO domain);


    /**
     * 返回黑名单详情
     * @param id
     * @return ResultDO
     */
    public ResultDO get(String id);

    /**
     * 删除黑名单
     * @param id
     * @return
     */
    public ResultDO remove(String id);

    /**
     * 查找系黑名单
     * @param query
     * @return ResultDO
     */
    public ResultDO find(BlacklistQueryDO query);
}
